﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;

using DAO;

namespace BUS
{
    public class TongKetMonBUS
    {
         public static DataTable DanhSach(string tenMonHoc, string hocKy)
         {
            return TongKetMonDAO.DanhSach( tenMonHoc, hocKy );
         }

         DataColumn CreateDataColumn(string colType, string name, string caption, bool autoInc, bool readOnly, bool unique)
         {
             DataColumn column = new DataColumn();
             column.DataType = System.Type.GetType(colType);
             column.ColumnName = name;
             column.Caption = caption;
             column.AutoIncrement = autoInc;
             column.ReadOnly = readOnly;
             column.Unique = unique;

             return column;
         }

         int LoadDuLieuXuong( DataTable tb )
         {
             if( tb != null )
                 return TongKetMonDAO.LoadDuLieuXuong( tb );
             return 0;
         }
       


    }
}
